import router from '@ohos.router';

export default {
    onPushSimple() {
        router.push({
            url: 'pages/simple/index'
        });
    },
    onReplaceSimple() {
        router.replace({
            url: 'pages/simple/index'
        });
    },
    onPushList() {
        router.push({
            url: 'pages/list/index'
        });
    },
    onReplaceList() {
        router.replace({
            url: 'pages/list/index'
        });
    },
    onPushGrid() {
        router.push({
            url: 'pages/grid/index'
        });
    },
    onReplaceGrid() {
        router.replace({
            url: 'pages/grid/index'
        });
    },
    onPushTabs() {
        router.push({
            url: 'pages/tabs/index'
        });
    },
    onReplaceTabs() {
        router.replace({
            url: 'pages/tabs/index'
        });
    },
    onPushSwiper() {
        router.push({
            url: 'pages/swiper/index'
        });
    },
    onReplaceSwiper() {
        router.replace({
            url: 'pages/swiper/index'
        });
    }
}